package org.cxmzxy.class2333;

public class MaxValue {
    public static void main(String[] args){
        int arr[] = {1, 9, 5, 7};
        double num = arr[0];
        for (int i = 0; i < arr.length; i++){
            if (arr[i]<num);
            num = arr[i];
        }
        System.out.println("最大值为:" + num);
    }
}
